package com.woniu.mapper;

import com.github.pagehelper.Page;
import com.woniu.entity.dto.CarSearchDTO;
import com.woniu.entity.vo.CarListVO;
import com.woniu.pojo.Car;
import org.apache.ibatis.annotations.Param;

public interface CarMapper {
    Page<CarListVO> listSearch(CarSearchDTO carSearchDTO);

    Integer save(Car car);

    Integer deleteByIds(Long[] ids);

    Integer updateById(Car car);

    Car getById(Long id);

    Car checkTitleExist(String title);

    Integer updateShowStatus(@Param("id") Long id, @Param("val") String val);
}
